<?php
namespace app\index\controller;
use think\Db;
class Minipro extends Base{
    public function minipro(){
    	$minipro_banner=Db::name('minipro_banner')->where('id',1)->find();
        $minipro_platforms_title=Db::name('minipro_platforms_title')->where('id',1)->find();
        $minipro_platforms=Db::name('minipro_platforms')->order('sort desc')->select();
        $minipro_advantages_title=Db::name('minipro_advantages_title')->where('id',1)->find();
        $minipro_advantages=Db::name('minipro_advantages')->order('sort desc')->select();
        $minipro_functions_title=Db::name('minipro_functions_title')->where('id',1)->find();
        $minipro_functions=Db::name('minipro_functions')->order('sort desc')->select();
        $minipro_server_title=Db::name('minipro_server_title')->where('id',1)->find();
        $minipro_server=Db::name('minipro_server')->order('sort desc')->select();
        $headquarters_branches=Db::name('headquarters_branches')->order('sort desc')->select();
        $others=Db::name('others')->where('state',1)->order('sort desc')->select();
        $this->assign('system_set',$this->system_set());
		$this->assign('minipro_banner',$minipro_banner);
        $this->assign('minipro_platforms_title',$minipro_platforms_title);
        $this->assign('minipro_platforms',$minipro_platforms);
        $this->assign('tmdurl',$this->request->domain());
        $this->assign('others',$others);
        $this->assign('minipro_advantages_title',$minipro_advantages_title);
        $this->assign('minipro_advantages',$minipro_advantages);
        $this->assign('minipro_functions_title',$minipro_functions_title);
        $this->assign('minipro_functions',$minipro_functions);
        $this->assign('minipro_server_title',$minipro_server_title);
        $this->assign('minipro_server',$minipro_server);
        $this->assign('headquarters_branches',$headquarters_branches);
        return $this->fetch();
    }
}
